# @Desc    : do what 
# @Author  : meihongliang  
# @Time    : 2025-05-08 02:05
# 处理导入异常示例
try:
    from pydantic import BaseModel  # 检查关键依赖
except ImportError as e:
    raise ImportError("Pydantic未安装，请运行: pip install pydantic") from e


def validate_input(data):
    if not isinstance(data, int):
        raise ValueError("ID必须为整数")
    return True
